home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- NNNNAAAAMMMMEEEE
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww - rotates and zooms a single ilImage
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- ilVkView
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <il/ilVkRotZoomView.h>
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This component rotates and zooms a single ilImage within an
- SSSSggggVVVViiiissssuuuuaaaallllDDDDrrrraaaawwwwiiiinnnnggggAAAArrrreeeeaaaa widget. It supports zoom-to-fit and also allows
- arbitrary zoom and rotation. It uses an iiiillllRRRRoooottttZZZZoooooooommmmIIIImmmmgggg object to perform
- the rotation and zoom. Since it is derived from iiiillllVVVVkkkkVVVViiiieeeewwww, it supports all
- of the same visuals that iiiillllVVVVkkkkVVVViiiieeeewwww supports. It is useful as an image
- overview for large images and can also be used to show an image zoomed up
- for detailed viewing.
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
-
- ilVkRotZoomView(const char* name, Widget parent)
- ilVkRotZoomView(const char* name, Widget parent, int attributes,
- int minComponentSize=8, int maxComponentSize=0)
-
- GGGGeeeetttt////sssseeeetttt iiiinnnnppppuuuutttt mmmmeeeetttthhhhooooddddssss
-
- const char* className()
- void setAngle(float ang)
- float getAngle()
- void setZoom(float x, float y)
- void setZoom(String s)
- void getZoom(float& x, float& y)
- void setCenter(float x, float y)
- void setCenter(String s)
- void getCenter(float& x, float& y)
- void setResampType(ilResampType rs)
- ilResampType getResampType()
- void sizeToFit(int enable = True)
- void keepAspect(int enable = True)
- virtual void expose(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
- virtual void input(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
- virtual void resize(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
- virtual void ilUpdateWidget() _p_r_o_t_e_c_t_e_d
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww(((())))
-
- ilVkRotZoomView(const char* name, Widget parent)
- ilVkRotZoomView(const char* name, Widget parent, int attributes,
- int minComponentSize=8, int maxComponentSize=0)
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- Both versions of the constructor take the _n_a_m_e of the component and
- also a pointer to the parent widget. The new view is created as a
- child of the specified _p_a_r_e_n_t widget.
-
- In the second version three additional parameters allow the
- attributes of the chosen visual to be specified. These parameters
- follow the parameters for constructing an iiiillllVVVVkkkkVVVViiiieeeewwww (see iiiillllVVVVkkkkVVVViiiieeeewwww(3)
- for more information).
-
- ccccllllaaaassssssssNNNNaaaammmmeeee(((())))
-
- const char * className()
-
-
- Returns the name of the compoent.
-
- eeeexxxxppppoooosssseeee(((())))
-
- virtual void expose(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
-
-
- This virtual method is called by the expose callback when the
- component is exposed. The contents of the drawing area are redrawn
- by calling the redraw method on ilDisplay.
-
- ggggeeeettttAAAAnnnngggglllleeee(((())))
-
- float getAngle()
-
-
- Returns the current angle of rotation. See also sssseeeettttAAAAnnnngggglllleeee().
-
- ggggeeeettttCCCCeeeennnntttteeeerrrr(((())))
-
- void getCenter(float& x, float& y)
-
-
- Returns the current x,y center of the zoomed image. See also
- sssseeeettttCCCCeeeennnntttteeeerrrr().
-
- ggggeeeettttRRRReeeessssaaaammmmppppTTTTyyyyppppeeee(((())))
-
- ilResampType getResampType()
-
-
- Returns the current resample type. See also sssseeeettttRRRReeeessssaaaammmmppppTTTTyyyyppppeeee().
-
- ggggeeeettttZZZZoooooooommmm(((())))
-
- void getZoom(float& x, float& y)
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- Returns the current x zoom factor and y zoom factor. See also
- sssseeeettttZZZZoooooooommmm().
-
- iiiillllUUUUppppddddaaaatttteeeeWWWWiiiiddddggggeeeetttt(((())))
-
- virtual void ilUpdateWidget() _p_r_o_t_e_c_t_e_d
-
-
- This virtual function is called when attributes of the displayed
- image are changed or when the drawing area is changed. For example,
- if _s_i_z_e_T_o_F_i_t or _k_e_e_p_A_s_p_e_c_t_R_a_t_i_o are changed, iiiillllUUUUppppddddaaaatttteeeeWWWWiiiiddddggggeeeetttt is
- called to re-display the image. If the drawing area is resized, the
- image may have to be zoomed to match the new size.
-
- iiiinnnnppppuuuutttt(((())))
-
- virtual void input(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
-
-
- This virtual function is called by the input callback when X input
- events are received. Since this component statically displays an
- ilImage, no actions are performed in response to input events. How-
- ever, a derived class may choose to manipulate the image within the
- ilDisplay object in response to input events. See also iiiillllVVVVkkkkVVVViiiieeeewwwweeeerrrr.
-
- kkkkeeeeeeeeppppAAAAssssppppeeeecccctttt(((())))
-
- void keepAspect(int enable = True)
-
-
- This method enables or disables the ability to maintain the aspect
- ratio when the image is zoomed. If _T_r_u_e is passed, then aspect
- ratio will be maintained and may limit zooming. If _F_a_l_s_e is passed,
- then aspect ratio will not be maintained during zooming and the
- image may stretch and become distorted. Aspect ratio is the ratio of
- width to height. See iiiillllRRRRoooottttZZZZoooooooommmmIIIImmmmgggg for more information.
-
- rrrreeeessssiiiizzzzeeee(((())))
-
- virtual void resize(Widget, XtPointer) _p_r_o_t_e_c_t_e_d
-
-
- This virtual function is called by the resize callback when the
- component is resized. Note that if _s_i_z_e_T_o_F_i_t is enabled, the
- displayed image will be resized to fit within the drawing area.
-
- sssseeeettttAAAAnnnngggglllleeee(((())))
-
- void setAngle(float ang)
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- Sets the angle of rotation to _a_n_g. The image is rotated counter
- clock-wise from the x-axis. See iiiillllRRRRoooottttZZZZoooooooommmmIIIImmmmgggg for more information.
-
- sssseeeettttCCCCeeeennnntttteeeerrrr(((())))
-
- void setCenter(float x, float y)
- void setCenter(String s)
-
-
- Centers the output image on the input coordinates specified by _x and
- _y. In the second version of this method, the string is scanned for
- pair of floats the form "x,y". See iiiillllRRRRoooottttZZZZoooooooommmmIIIImmmmgggg for more
- information.
-
- sssseeeettttRRRReeeessssaaaammmmppppTTTTyyyyppppeeee(((())))
-
- void setResampType(ilResampType rs)
-
-
- Selects the type of resampling to use. For example, _i_l_N_e_a_r_N_b
- specifies nearest neighbor resampling, _i_l_B_i_L_i_n_e_a_r specifies bi-
- linear resampling and _i_l_B_i_C_u_b_i_c specifies bi-cubic resampling. If
- _i_l_A_u_t_o_R_e_s_a_m_p is specified then the type of resampling depends on the
- operation performed. See iiiillllRRRRoooottttZZZZoooooooommmmIIIImmmmgggg or iiiillllWWWWaaaarrrrppppIIIImmmmgggg for more
- information.
-
- sssseeeettttZZZZoooooooommmm(((())))
-
- void setZoom(float x, float y)
- void setZoom(String s)
-
-
- Sets the zoom factor in the _x and _y direction. If x and y are equal,
- then the aspect ratio will be unchanged. By default, the zoom factor
- is 1.0 for both x and y. In the second version of this method, the
- string is scanned for either a single number or a pair of floats the
- form "x,y". If only one number is present, both x and y are set to
- that number.
-
- ssssiiiizzzzeeeeTTTTooooFFFFiiiitttt(((())))
-
- void sizeToFit(int enable = True)
-
-
- This method enables or disables the ability to zoom the image to fit
- the drawing area. If _T_r_u_e, then the image will be zoomed to fit
- within the drawing area. If _F_a_l_s_e, then the image will not change
- size when the drawing aea changes size. Note that the image may not
- fill the drawing area if _k_e_e_p_A_s_p_e_c_t is True. See also kkkkeeeeeeeeppppAAAAssssppppeeeecccctttt().
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- iiiillllVVVVkkkkRRRRoooottttZZZZoooooooommmmVVVViiiieeeewwww((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllVVVVkkkkVVVViiiieeeewwww
- className(), expose(), getDisplay(), getDrawArea(), getSize(), input(),
- map(), paint(), resize()
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllVVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
- className(), getImage(), getParent(), ilUpdateWidget(), setImage(),
- setParent()
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
- afterRealizeHook(), baseWidget(), className(), getResources(), hide(),
- installDestroyHandler(), manage(), name(), okToQuit(), operator Widget(),
- removeDestroyHandler(), setDefaultResources(), show(), unmanage(),
- widgetDestroyed()
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkComponent, ilVkView, ilRotZoomImg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-